package com.tfswx.jcyw.sqlmodel.api.bean.table.expression;

import com.tfswx.jcyw.sqlmodel.api.bean.table.Expression;

/**
 * @author 张述江
 * @date 2023/9/15
 */
public abstract class ComparisonOperator extends BinaryExpression {

    private final String operator;

    public ComparisonOperator(String operator) {
        this.operator = operator;
    }

    public ComparisonOperator(String operator, Expression left, Expression right) {
        this(operator);
        setLeftExpression(left);
        setRightExpression(right);
    }

    @Override
    public String getStringExpression() {
        return operator;
    }

}
